package com.zhixing.pay.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhixing.pay.domain.enums.TransactionType;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import static com.zhixing.common.constant.Constant.DATETIME;

@Data
public class TransactionRecordVO {

    /**
     * 交易类型：0-收入，1-支出
     * @example 0
     */
    private TransactionType transactionType;

    /**
     * 交易金额
     * @example 100.00
     */
    private BigDecimal amount;

    /**
     * 交易描述
     * @example 新人奖励
     */
    private String description;

    /**
     * 交易时间
     * @example 2024-01-20 12:00:00
     */
    @JsonFormat(pattern = DATETIME)
    private LocalDateTime transactionTime;
}
